package com.lmt_4;

public class Test {
    public static void main(String[] args) {
        go(new Swimming() {
            @Override
            public void swim() {
                System.out.println("dog can swim");
            }
        });
    }

    public static void go(Swimming s){
        System.out.println("开始===============");
        s.swim();
    }
}

interface Swimming{
    void swim();

}


